from django.db import models

# Create your models here.
class Entry(models.Model):
    code = models.CharField(max_length=32)
    logger = models.CharField(max_length=128)
    level = models.CharField(max_length=32)
    message = models.CharField(max_length=10240000)
    stacktrace = models.CharField(max_length=102400)
    exception = models.TextField()
    log_at = models.DateTimeField()
    created_at = models.DateTimeField(auto_now_add=True)
    class Meta:
        verbose_name_plural = 'Entries'
        # ordering = []